// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_MESSAGE
// * CreateDate    : 2014-06-05 18:30:16
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:16
// * LastChanger   : 2014-06-05 18:30:16
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstMessageTable : TableInfo
    {
		public const string C_TableName = "MST_MESSAGE";
		
		public const string C_MESSAGE_ID = "MESSAGE_ID";
		public const string C_MESSATE_TITLE = "MESSATE_TITLE";
		public const string C_MESSAGE_BODY = "MESSAGE_BODY";
		public const string C_MESSAGE_DATE = "MESSAGE_DATE";
		public const string C_MESSAGE_SENDER = "MESSAGE_SENDER";
		public const string C_MESSAGE_LEVEL = "MESSAGE_LEVEL";
		public const string C_FORM_NAME = "FORM_NAME";
		
		public MstMessageTable()
        {
            _tableName = "MST_MESSAGE";
        }
		
		protected static MstMessageTable _current;
        public static MstMessageTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstMessageTable();

            _current.Add(C_MESSAGE_ID, new ColumnInfo(C_MESSAGE_ID,"MessageId", true, typeof(string)));
            _current.Add(C_MESSATE_TITLE, new ColumnInfo(C_MESSATE_TITLE,"MessateTitle", false, typeof(string)));
            _current.Add(C_MESSAGE_BODY, new ColumnInfo(C_MESSAGE_BODY,"MessageBody", false, typeof(string)));
            _current.Add(C_MESSAGE_DATE, new ColumnInfo(C_MESSAGE_DATE,"MessageDate", false, typeof(DateTime)));
            _current.Add(C_MESSAGE_SENDER, new ColumnInfo(C_MESSAGE_SENDER,"MessageSender", false, typeof(string)));
            _current.Add(C_MESSAGE_LEVEL, new ColumnInfo(C_MESSAGE_LEVEL,"MessageLevel", false, typeof(string)));
            _current.Add(C_FORM_NAME, new ColumnInfo(C_FORM_NAME,"FormName", false, typeof(string)));
			
		}
		
		public ColumnInfo MESSAGE_ID
        {
            get { return this[C_MESSAGE_ID]; }
        }
		
		public ColumnInfo MESSATE_TITLE
        {
            get { return this[C_MESSATE_TITLE]; }
        }
		
		public ColumnInfo MESSAGE_BODY
        {
            get { return this[C_MESSAGE_BODY]; }
        }
		
		public ColumnInfo MESSAGE_DATE
        {
            get { return this[C_MESSAGE_DATE]; }
        }
		
		public ColumnInfo MESSAGE_SENDER
        {
            get { return this[C_MESSAGE_SENDER]; }
        }
		
		public ColumnInfo MESSAGE_LEVEL
        {
            get { return this[C_MESSAGE_LEVEL]; }
        }
		
		public ColumnInfo FORM_NAME
        {
            get { return this[C_FORM_NAME]; }
        }
		
		
		
	}
}

